package com.example.csdn.DTO;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class RegisterDTO {
    @NotEmpty
    @Pattern(regexp = "^\\S{3,10}$")
    private String username;

    @NotEmpty
    @Pattern(regexp = "^\\S{6,18}$")
    private String password;

    @Email
    private String email;
}
